package com.chen.demofeigncaller.service;


import com.chen.common.dto.ResponseResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * 要和被调用服务的返回结果以及传参结果一样
 */
@FeignClient(name = "feign-called")//被调用服务的，服务名字
public interface TestFeignCallerService {

        //被调用服务的，方法路径。以及方法类型
    @RequestMapping(value = "/feigncalled/demo",method = RequestMethod.POST)
    ResponseResult getTestData();
}
